package com.sky.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sky.domain.OmsOrderReturnReason;
import com.sky.service.OmsOrderReturnReasonService;
import com.sky.mapper.OmsOrderReturnReasonMapper;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;

/**
* @author Administrator
* @description 针对表【oms_order_return_reason(退货原因)】的数据库操作Service实现
* @createDate 2024-06-30 16:46:10
*/
@Service
public class OmsOrderReturnReasonServiceImpl extends ServiceImpl<OmsOrderReturnReasonMapper, OmsOrderReturnReason> implements OmsOrderReturnReasonService{

    @Async
    @Override
    public Future<Integer> test() throws InterruptedException {
        Thread.sleep(1000);
        System.out.println("http://auth.skymall.com/api/sky-mall-order/orderReturnApply/list");
        CompletableFuture<Integer> voidCompletableFuture = CompletableFuture.supplyAsync(() -> 1/0);
        return voidCompletableFuture;
    }
}




